package com.zenob.secalendar;

import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;

import com.zenob.secalendar.view.CalendarView;

public class SeCalendarApp {

	private MIDlet mMidlet;	
	private Display mDisplay;
	
	
	private CalendarView mCalendarView;
	
	
	public SeCalendarApp(MIDlet midlet) {
		
		mMidlet = midlet;
		mDisplay = Display.getDisplay(mMidlet);
		
		initViews();
		
		mDisplay.setCurrent(mCalendarView);
		
	}
	
	private void initViews() {
		mCalendarView = new CalendarView(this);
	}
	
	public void closeApp() {
		mMidlet.notifyDestroyed();
	}
}
